package cn.kmust.project01.mapper;

import cn.kmust.project01.entity.Notice;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface NoticeMapper {

    int insertMessage(Notice notice);

    //查询所有的公告信息
    List<Notice> queryAll();

    //新增一条公告
    int addNotice(Notice notice);


    //通过id查询某一条公告
    Notice queryById(Integer id);

    //删除某一条公告
    int deleteById(Integer id);

}
